package com.drugstore.drugstore.domain;


import java.util.Date;


/**
 * 对象 order
 * 
 * @author 
 * @date 2025-05-08
 */
public class Order 
{

    /** $column.columnComment */
    private Long id;

    /** 下单用户ID */
    private Long userId;

    /** 订单关联门店ID */
    private Long storeId;

    /** 订单总金额（单位分） */
    private Long totalAmount;

    /** 订单状态（0待付款，1已付款，2已发货，3已送达） */
    private Long status;

    /** 支付方式（0支付宝，1微信，2银行卡） */
    private Long payType;

    /** 期望送达时间 */
    private Date deliveryTime;

   private Date createTime;

    public Order() {
    }

    public Order(Long id, Long userId, Long storeId, Long totalAmount, Long status, Long payType, Date deliveryTime, Date createTime) {
        this.id = id;
        this.userId = userId;
        this.storeId = storeId;
        this.totalAmount = totalAmount;
        this.status = status;
        this.payType = payType;
        this.deliveryTime = deliveryTime;
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取
     * @return userId
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * 设置
     * @param userId
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * 获取
     * @return storeId
     */
    public Long getStoreId() {
        return storeId;
    }

    /**
     * 设置
     * @param storeId
     */
    public void setStoreId(Long storeId) {
        this.storeId = storeId;
    }

    /**
     * 获取
     * @return totalAmount
     */
    public Long getTotalAmount() {
        return totalAmount;
    }

    /**
     * 设置
     * @param totalAmount
     */
    public void setTotalAmount(Long totalAmount) {
        this.totalAmount = totalAmount;
    }

    /**
     * 获取
     * @return status
     */
    public Long getStatus() {
        return status;
    }

    /**
     * 设置
     * @param status
     */
    public void setStatus(Long status) {
        this.status = status;
    }

    /**
     * 获取
     * @return payType
     */
    public Long getPayType() {
        return payType;
    }

    /**
     * 设置
     * @param payType
     */
    public void setPayType(Long payType) {
        this.payType = payType;
    }

    /**
     * 获取
     * @return deliveryTime
     */
    public Date getDeliveryTime() {
        return deliveryTime;
    }

    /**
     * 设置
     * @param deliveryTime
     */
    public void setDeliveryTime(Date deliveryTime) {
        this.deliveryTime = deliveryTime;
    }

    /**
     * 获取
     * @return createTime
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String toString() {
        return "Order{id = " + id + ", userId = " + userId + ", storeId = " + storeId + ", totalAmount = " + totalAmount + ", status = " + status + ", payType = " + payType + ", deliveryTime = " + deliveryTime + ", createTime = " + createTime + "}";
    }
}
